﻿@{
    Layout = "~/Views/Shared/_LayuiLayout.cshtml";
}

@model FontOutput

<form class="layui-form layui-form-pane">
    @Html.AntiForgeryToken()
    <input type="hidden" value="@Model.Id" name="Id" />
	<div class="layui-form-item">
                   <label class="layui-form-label">名称</label>
                   <div class="layui-input-block">
                       <input type="text" class="layui-input" name="Name" value="@Model.Name">
                   </div>
              </div>
				<div class="layui-form-item">
                   <label class="layui-form-label">地址</label>
                   <div class="layui-input-block">
                       <input type="text" class="layui-input" name="Url" value="@Model.Url">
                   </div>
              </div>
				<div class="layui-form-item">
                   <label class="layui-form-label">描述</label>
                   <div class="layui-input-block">
                       <input type="text" class="layui-input" name="Describe" value="@Model.Describe">
                   </div>
              </div>
				    <div class="layui-form-item" align="center">
        <button type="button" class="layui-btn layui-btn-primary" id="btnCancel">取消</button>
    </div>
</form>

@section scripts{
    <script type="text/javascript">
        var $, layer;
        layui.use(['form'], function () {
            var form = layui.form;
            $ = layui.jquery;
            layer = parent.layer === undefined ? layui.layer : parent.layer;

            // 监听关闭
            $('#btnCancel').on('click', function () {
                layer_close();
            });
        });
    </script>
}

